68707f1e93c4e4c72a36fce4aea4cb42f322763c,community/src/java/org/neo4j/impl/shell/apps/Ls.java,Ls,displayProperties,#NodeOrRelationship#Output#boolean#boolean#Map#boolean#boolean#,138
Before Change
throws RemoteException
{
int longestKey = this.findLongestKey( thing );
for ( String key : thing.getPropertyKeys() )
{
boolean matches = filterMap.isEmpty();
Object value = thing.getProperty( key );
for ( Map.Entry<String, Object> filter : filterMap.entrySet() )
{
if ( matches( newPattern( filter.getKey(),
After Change
throws RemoteException
{
int longestKey = findLongestKey( thing );
for ( String key : sortKeys( thing.getPropertyKeys() ) )
{
boolean matches = filterMap.isEmpty();
Object value = thing.getProperty( key );
for ( Map.Entry<String, Object> filter : filterMap.entrySet() )
{
if ( matches( newPattern( filter.getKey(),
caseInsensitiveFilters ), key, caseInsensitiveFilters,
looseFilters ) )
{
String filterValue = filter.getValue() != null ?
filter.getValue().toString() : null;
if ( matches( newPattern( filterValue,
caseInsensitiveFilters ), value.toString(),
caseInsensitiveFilters, looseFilters ) )
{
matches = true;
break;
}
}
}
if ( !matches )
{
continue;
}
out.print( "*" + key );
if ( displayValues )
{
this.printMany( out, " ", longestKey - key.length() + 1 );
out.print( "=" + format( value ) );
if ( verbose )
{
out.print( " (" + getNiceType( value ) + ")" );